// TestLasReader.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

#include <iostream>

#include <windows.h>

#include "..\LasReader\LasReader.h"
#include "..\LasReader\LasPoint.h"

using namespace std;

#pragma comment(lib, "LasReader.lib")

int _tmain(int argc, _TCHAR* argv[])
{
	CLasReader reader;
	reader.OpenFile("d:/str_8.las");

	const CLasPoint* pPoint;
	double temp;

	int starttime = GetTickCount();
	do
	{
		pPoint = reader.GetPoint();
		temp = pPoint->GetCoordinateX();
		temp = pPoint->GetCoordinateY();
		temp = pPoint->GetCoordinateZ();
		
	}while(reader.NextPoint());

	cout<<GetTickCount() - starttime<<endl;

	system("pause");

	return 0;
}

